package com.jiangyg.mall.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 类描述：积分变化历史记录
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:00:56
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mm_integration_change_history")
public class IntegrationChangeHistory implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * member_id
	 */
	@TableField("member_id")
	private Long memberId;

	/**
	 * create_time
	 */
	@TableField("create_time")
	private Date createTime;

	/**
	 * 变化的值
	 */
	@TableField("change_count")
	private Integer changeCount;

	/**
	 * 备注
	 */
	@TableField("note")
	private String note;

	/**
	 * 来源[0->购物；1->管理员修改;2->活动]
	 */
	@TableField("source_tyoe")
	private Integer sourceTyoe;


}
